package com.uni.support.em;

public enum OrderType {
	EXPRESS(0,"代拿"),
	SHOPPING(1,"购物"),
	TAKERAPPLY(2,"申请接单员"),
	TOPPING(3,"置顶"),
	
	;
	
	private int type;
	private String desc;
	
	private OrderType(int type,String desc) {
		this.type = type;
		this.desc = desc;
	}
	
	public static OrderType getByType(int type) {
		for(OrderType aoo : OrderType.values()) {
			if(aoo.type == type) {
				return aoo;
			}
		}
		return null;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}
}
